import { defineStore } from "pinia";
import {reqGetCategoryList,reqGetDetail} from '../api/catrgory/catrgory'
export const useCategoryStore = defineStore('categoryStore',()=>{
  // 分类
  const recommendList =async(obj:any)=>{
   let res = await reqGetCategoryList(obj)
   return res
  }
  // 详情
  const detailList =async (obj:any)=>{
   let res =await  reqGetDetail(obj)
   return res
  }
  return {
    recommendList,
    detailList
  }
      
})
